﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.ProductionReturn
{
    public class ReturnofMaterialinfoMap : IEntityTypeConfiguration<ReturnofMaterialinfo>
    {
        public void Configure(EntityTypeBuilder<ReturnofMaterialinfo> builder)
        {
            builder.ToTable("tb_ReturnofMaterialinfo");
            builder.Property(m => m.Materialname).HasComment("物料名称").HasColumnType("varchar(50)");
            builder.Property(m => m.Materialnumber).HasComment("物料编号").HasColumnType("varchar(50)");
            builder.Property(m => m.Specification).HasComment("规格型号").HasColumnType("varchar(50)");
            builder.Property(m => m.Unit).HasComment("单位").HasColumnType("varchar(50)");
            builder.Property(m => m.Batchnumber).HasComment("批次号").HasColumnType("varchar(50)");
            builder.Property(m => m.Warehousename).HasComment("仓库名称").HasColumnType("varchar(50)");
            builder.Property(m => m.Returnedmaterialnumber).HasComment("退料编号").HasColumnType("varchar(50)");
        }
    }
}
